<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\modules\diary\model\Diary | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.modules.diary.model.html" title="Summary of application\modules\diary\model"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li>
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li class="active">
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.modules.diary.model.CalendarRecord.html">CalendarRecord</a></li>
				<li class="active"><a href="class-application.modules.diary.model.Diary.html">Diary</a></li>
				<li><a href="class-application.modules.diary.model.DiaryAttention.html">DiaryAttention</a></li>
				<li><a href="class-application.modules.diary.model.DiaryRecord.html">DiaryRecord</a></li>
				<li><a href="class-application.modules.diary.model.DiaryShare.html">DiaryShare</a></li>
				<li><a href="class-application.modules.diary.model.DiaryStats.html">DiaryStats</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Diary</h1>



	<dl class="tree well">
		<dd style="padding-left:0px">
CActiveRecord
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
			<a href="class-application.core.model.Model.html"><span>application\core\model\Model</span></a>
			
			
			
		</dd>
		<dd style="padding-left:60px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>application\modules\diary\model\Diary</span></b>			
			
			
		</dd>
	</dl>








	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.modules.html">modules</a>\<a href="namespace-application.modules.diary.html">diary</a>\<a href="namespace-application.modules.diary.model.html">model</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2008-2013 IBOS Inc<br>
				<b>Author:</b>
				gzwwb <a href="&#109;&#97;&#105;&#x6c;&#x74;&#x6f;:&#103;&#122;&#119;&#x77;&#x62;&#x40;&#105;&#98;&#111;&#115;&#x2e;&#x63;&#x6f;&#109;&#46;&#99;&#x6e;">&#103;&#122;&#119;&#x77;&#x62;&#x40;&#105;&#98;&#111;&#115;&#x2e;&#x63;&#x6f;&#109;&#46;&#99;&#x6e;</a><br>
			<b>Located at</b> system/modules/diary/model/Diary.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="model" id="_model">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_model">#</a>
			<code>model( <span> <var>$className</var> = __CLASS__ </span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="tableName" id="_tableName">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_tableName">#</a>
			<code>tableName( )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="getSourceInfo" id="_getSourceInfo">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSourceInfo">#</a>
			<code>getSourceInfo( <span>integer <var>$id</var></span> )</code>

			<div class="description short">
				<p>兼容Source接口</p>
			</div>

			<div class="description detailed hidden">
				<p>兼容Source接口</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$id</var></dt>
						<dd>资源ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByPage" id="_fetchAllByPage">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByPage">#</a>
			<code>fetchAllByPage( <span>string <var>$condition</var></span>, <span>integer <var>$pageSize</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>取得列表内容，分页</p>
			</div>

			<div class="description detailed hidden">
				<p>取得列表内容，分页</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$condition</var></dt>
						<dd>查询条件</dd>
						<dt><var>$pageSize</var></dt>
						<dd>分页大小</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByPage2" id="_fetchAllByPage2">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByPage2">#</a>
			<code>fetchAllByPage2( <span>string <var>$condition</var></span>, <span>integer <var>$pageSize</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>取得列表内容，分页</p>
			</div>

			<div class="description detailed hidden">
				<p>取得列表内容，分页</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$condition</var></dt>
						<dd></dd>
						<dt><var>$pageSize</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkDiaryisAdd" id="_checkDiaryisAdd">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkDiaryisAdd">#</a>
			<code>checkDiaryisAdd( <span>integer <var>$diarytime</var></span>, <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>验证用户是否已添加当天的日志</p>
			</div>

			<div class="description detailed hidden">
				<p>验证用户是否已添加当天的日志</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diarytime</var></dt>
						<dd></dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchPreDiary" id="_fetchPreDiary">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchPreDiary">#</a>
			<code>fetchPreDiary( <span>integer <var>$diarytime</var></span>, <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>获取某个用户某个日期之前的日志</p>
			</div>

			<div class="description detailed hidden">
				<p>获取某个用户某个日期之前的日志</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diarytime</var></dt>
						<dd>参照日志的时间</dd>
						<dt><var>$uid</var></dt>
						<dd>用户uid</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>返回上一篇日志数组，没有就返回空数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchPrevAndNextPKByPK" id="_fetchPrevAndNextPKByPK">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchPrevAndNextPKByPK">#</a>
			<code>fetchPrevAndNextPKByPK( <span>integer <var>$diaryid</var></span> )</code>

			<div class="description short">
				<p>取得当前id的上一个id和下一个Id,以数组形式返回</p>
			</div>

			<div class="description detailed hidden">
				<p>取得当前id的上一个id和下一个Id,以数组形式返回</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diaryid</var></dt>
						<dd>当前日志日志ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>返回此用户的上一篇和下一篇日志的ID
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchDiaryRecord" id="_fetchDiaryRecord">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchDiaryRecord">#</a>
			<code>fetchDiaryRecord( <span>array <var>$diary</var></span> )</code>

			<div class="description short">
				<p>通过diary数组取出该天的工作计划和计划外内容和下一次计划内容</p>
			</div>

			<div class="description detailed hidden">
				<p>通过diary数组取出该天的工作计划和计划外内容和下一次计划内容</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diary</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="addReaderuidByPk" id="_addReaderuidByPk">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_addReaderuidByPk">#</a>
			<code>addReaderuidByPk( <span>array <var>$diary</var></span>, <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>增加阅读记录,数据存在或者uid等于作者，返回0,其他返回修改是否成功</p>
			</div>

			<div class="description detailed hidden">
				<p>增加阅读记录,数据存在或者uid等于作者，返回0,其他返回修改是否成功</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diary</var></dt>
						<dd></dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByShareCondition" id="_fetchAllByShareCondition">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByShareCondition">#</a>
			<code>fetchAllByShareCondition( <span>integer <var>$uid</var></span>, <span>integer <var>$number</var></span> )</code>

			<div class="description short">
				<p>取得最近的$number数量的分享日志</p>
			</div>

			<div class="description detailed hidden">
				<p>取得最近的$number数量的分享日志</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>分享给谁</dd>
						<dt><var>$number</var></dt>
						<dd>数量</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="updateAttentionByPk" id="_updateAttentionByPk">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateAttentionByPk">#</a>
			<code>updateAttentionByPk( <span>integer <var>$diaryid</var></span>, <span>string <var>$type</var></span>, <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>通过diaryid修改attention的值</p>
			</div>

			<div class="description detailed hidden">
				<p>通过diaryid修改attention的值</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diaryid</var></dt>
						<dd>主键</dd>
						<dt><var>$type</var></dt>
						<dd>设置或者取消关注</dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>修改成功或失败
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByUidAndDiarytime" id="_fetchAllByUidAndDiarytime">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByUidAndDiarytime">#</a>
			<code>fetchAllByUidAndDiarytime( <span>string <var>$ym</var></span>, <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>取出当前uid这个月的所有日志记录，得到每篇日志的有日志，已点评状态</p>
			</div>

			<div class="description detailed hidden">
				<p>取出当前uid这个月的所有日志记录，得到每篇日志的有日志，已点评状态</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ym</var></dt>
						<dd>年月 例：201307</dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllDiaryidByUid" id="_fetchAllDiaryidByUid">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllDiaryidByUid">#</a>
			<code>fetchAllDiaryidByUid( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>通过uid取得该用户所有diayrid，以逗号分隔</p>
			</div>

			<div class="description detailed hidden">
				<p>通过uid取得该用户所有diayrid，以逗号分隔</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllAidByPks" id="_fetchAllAidByPks">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllAidByPks">#</a>
			<code>fetchAllAidByPks( <span>mixed <var>$diaryIds</var></span> )</code>

			<div class="description short">
				<p>根据日志id取得所有附件Id</p>
			</div>

			<div class="description detailed hidden">
				<p>根据日志id取得所有附件Id</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diaryIds</var></dt>
						<dd>日志ids</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>附件ids 逗号分割的字符串
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchUidByDiaryId" id="_fetchUidByDiaryId">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchUidByDiaryId">#</a>
			<code>fetchUidByDiaryId( <span>integer <var>$diaryId</var></span> )</code>

			<div class="description short">
				<p>根据日志id取得所属uid</p>
			</div>

			<div class="description detailed hidden">
				<p>根据日志id取得所属uid</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diaryId</var></dt>
						<dd>日志id</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countCommentByUid" id="_countCommentByUid">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countCommentByUid">#</a>
			<code>countCommentByUid( <span>integer <var>$uid</var></span>, <span> <var>$curUid</var></span> )</code>

			<div class="description short">
				<p>取得共享日志总评论</p>
			</div>

			<div class="description detailed hidden">
				<p>取得共享日志总评论</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$curUid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countCommentByReview" id="_countCommentByReview">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countCommentByReview">#</a>
			<code>countCommentByReview( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>取得当前用户的总评论数</p>
			</div>

			<div class="description detailed hidden">
				<p>取得当前用户的总评论数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countDiaryTotalByUid" id="_countDiaryTotalByUid">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countDiaryTotalByUid">#</a>
			<code>countDiaryTotalByUid( <span>mixed <var>$uid</var></span>, <span>integer <var>$start</var></span>, <span>integer <var>$end</var></span> )</code>

			<div class="description short">
				<p>统计指定用户指定日期范围内的日志数</p>
			</div>

			<div class="description detailed hidden">
				<p>统计指定用户指定日期范围内的日志数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>单个用户ID或数组</dd>
						<dt><var>$start</var></dt>
						<dd>开始范围</dd>
						<dt><var>$end</var></dt>
						<dd>结束范围</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countReviewTotalByUid" id="_countReviewTotalByUid">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countReviewTotalByUid">#</a>
			<code>countReviewTotalByUid( <span>integer <var>$uid</var></span>, <span> <var>$start</var></span>, <span> <var>$end</var></span> )</code>

			<div class="description short">
				<p>统计用户被评阅总数</p>
			</div>

			<div class="description detailed hidden">
				<p>统计用户被评阅总数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
						<dt><var>$start</var></dt>
						<dd></dd>
						<dt><var>$end</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countUnReviewByUids" id="_countUnReviewByUids">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countUnReviewByUids">#</a>
			<code>countUnReviewByUids( <span>mixed <var>$uid</var></span>, <span>integer <var>$start</var></span>, <span>integer <var>$end</var></span> )</code>

			<div class="description short">
				<p>统计指定用户的未评阅数</p>
			</div>

			<div class="description detailed hidden">
				<p>统计指定用户的未评阅数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$start</var></dt>
						<dd>开始时间戳</dd>
						<dt><var>$end</var></dt>
						<dd>结束时间戳</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countOnTimeRateByUid" id="_countOnTimeRateByUid">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countOnTimeRateByUid">#</a>
			<code>countOnTimeRateByUid( <span>integer <var>$uid</var></span>, <span>integer <var>$start</var></span>, <span>integer <var>$end</var></span> )</code>

			<div class="description short">
				<p>统计指定用户指定时间内的日志提交准时率</p>
			</div>

			<div class="description detailed hidden">
				<p>统计指定用户指定时间内的日志提交准时率</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$start</var></dt>
						<dd>开始时间戳</dd>
						<dt><var>$end</var></dt>
						<dd>结束时间戳</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAddTimeByUid" id="_fetchAddTimeByUid">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAddTimeByUid">#</a>
			<code>fetchAddTimeByUid( <span>integer <var>$uid</var></span>, <span>integer <var>$start</var></span>, <span>integer <var>$end</var></span> )</code>

			<div class="description short">
				<p>获取指定用户指定时间范围内的日志添加时间</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定用户指定时间范围内的日志添加时间</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$start</var></dt>
						<dd>开始时间戳</dd>
						<dt><var>$end</var></dt>
						<dd>结束时间戳</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAddTimeByDiaryId" id="_fetchAddTimeByDiaryId">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAddTimeByDiaryId">#</a>
			<code>fetchAddTimeByDiaryId( <span>mixed <var>$diaryIds</var></span> )</code>

			<div class="description short">
				<p>获取指定日志ID范围内的日志添加时间</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定日志ID范围内的日志添加时间</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$diaryIds</var></dt>
						<dd>日志ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkUidIsShared" id="_checkUidIsShared">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkUidIsShared">#</a>
			<code>checkUidIsShared( <span> <var>$uid</var></span>, <span> <var>$diaryid</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-application.core.model.Model.html#methods">application\core\model\Model</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.model.Model.html#_add">add()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_beforeDelete">beforeDelete()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_create">create()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_deleteByPk">deleteByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetch">fetch()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAll">fetchAll()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllByAttributes">fetchAllByAttributes()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllByPk">fetchAllByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllSortByPk">fetchAllSortByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchByAttributes">fetchByAttributes()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchByPk">fetchByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchCache">fetchCache()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchCaches">fetchCaches()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getCacheKey">getCacheKey()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getIsAllowCache">getIsAllowCache()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getMaxId">getMaxId()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getModelClass">getModelClass()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_init">init()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_modify">modify()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_remove">remove()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_updateAll">updateAll()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_updateByPk">updateByPk()</a></code>
			</p>
		</div>










		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Properties inherited from <a href="class-application.core.model.Model.html#properties">application\core\model\Model</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.model.Model.html#$allowCache"><var>$allowCache</var></a></code>, 
				<code><a href="class-application.core.model.Model.html#$cacheLife"><var>$cacheLife</var></a></code>
			</p>
		</div>





</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
